import request from '@/utils/request'

// 查询钱包提现列表
export function walletWithdrawList(query) {
  return request({
    url: '/admin-api/pay/walletWithdraw/list',
    method: 'get',
    params: query
  })
}

// 查询钱包提现详情
export function getWalletWithdraw(query) {
  return request({
    url: `/admin-api/pay/walletWithdraw/${id}`,
    method: 'get',
  })
}

// 通过申请
export function approve(query) {
  return request({
    url: '/admin-api/pay/walletWithdraw/approve',
    method: 'put',
    data: query
  })
}

// 驳回申请
export function reject(query) {
  return request({
    url: '/admin-api/pay/walletWithdraw/reject',
    method: 'put',
    data: query
  })
}
